// 侧边悬浮导航样式
.bar{
    position: fixed;
    top: 20%;
    right: 20px;
    width: 30px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    z-index: 999;
    .item{
        display: block;
        width: 30px;
        height: 30px;
        border-radius: 3px;
        background: #f4f4f4 url(../images/icon_bar.png) no-repeat;
        background-size: 100%;
        border: 1px solid #d6d6d6;
        box-sizing: border-box;
        &::before{
            content: '购物车';
            display: none;
            width: 100%;
            height: 100%;
            background: red;
            color: #fff;
            padding: 5px;
            font-size: 10px;
            font-weight: 100;
        }
        &:nth-child(1){
            background-position: 0 5px;
            &::before{
                content: '去购物车';
            }
            &:hover{
                text-decoration: none;
                border: none;
                &::before{
                    display: flex;
                    align-items: center;
                }
            }
            .badge{
                width: 15px;
                height: 15px;
                font-size: 10px;
                text-align: center;
                position: absolute;
                top: -3px;
                right: -5px;
                border-radius: 50%;
                color: #fff;
                background: #c10000;
            }
        }
        &:nth-child(2){
            background-position: 0 -62px;
            &::before{
                content: '后台管理';
            }
            &:hover{
                text-decoration: none;
                border: none;
                &::before{
                    display: flex;
                    align-items: center;
                }
            }
        }
        &:nth-child(3){
            background-position: 0 -130px;
            &::before{
                content: '个人中心';
            }
            &:hover{
                text-decoration: none;
                border: none;
                &::before{
                    display: flex;
                    align-items: center;
                }
            }
        }
        
    }
}
// 头部header样式
header{
    margin-bottom: 1px;
    .logo{
        display: block;
        width: 120px;
        >img{
            width: 100%;
        }
    }
    .login{
        color: #000;
        font-size: 12px;
    }
    .border{
        display: inline-block;
        background: #000;
        width: 1px;
        height: 15px;
        margin: 0 5px;
    }
    .register{
        color: #000;
        font-size: 12px;
        margin-right: 5px;
    }
    .input{
        width: 200px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-bottom: 1px solid #000;
        input::-webkit-input-placeholder{
            font-size: 12px;
        }
        >input{
            width: 150px;   
            height: 30px;
            border: none;
        }
        .search{
            display: block;
            width: 20px;
            height: 20px;
            background: url(../images/index_search.png) no-repeat;
            background-size: 100%;
        }
    }
    .nav-user{
        display: block;
        margin: 0 10px;
        width: 20px;
        height: 20px;
        background: url(../images/index_user.png) no-repeat;
        background-size: 100%;
    }
    .nav-code{
        display: block;
        width: 20px;
        height: 20px;
        margin: 0 10px;
        background: url(../images/index_code.png) no-repeat;
        background-size: 100%;
    }
    .nav{
        display: flex;
        .nav-item{
            display: block;
            padding: 16px;
            padding-bottom: 0;
            padding-top: 0;
            .nav-link{
                display: block;
                margin: 0;
                padding: 10px;
                color: #333;
                font-size: 13px;
                border: 2px solid transparent;
                &:hover{
                    color: #a10000;
                    border-bottom-color: #a10000;
                }
            }
            &:nth-child(2){
                .sub-nav{
                    display: none;
                    width: 1340px;
                    border-top: 1px solid #272727;
                    position: absolute;
                    top: 40px;
                    left: -195px;
                    padding-top: 20px;
                    z-index: 999;
                    background: #fff;
                    >ul{
                        text-align: center;
                        margin: 0 auto;
                        padding-bottom: 20px;
                        width: 80%;
                        display: flex;
                        justify-content: space-between;
                        >li{
                            list-style: none;
                            width: 160px;
                            >img{
                                width: 100%;
                            }
                            >span{
                                font-size: 12px;
                                color: #333;
                            }
                        }
                        .division{
                            width: 1px;
                            height: 200px;
                            margin-top: 5px;
                            background: #272727;
                        }
                    }
                }
                &:hover{
                    .sub-nav{
                        display: block;
                    }
                }
            }
        }
    }   
}
// 底部footer样式
footer{
    border: 1px solid #dbdbdb;
    section{
        >ul{
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            list-style: none;
            margin: 0;
            padding: 5px 0;
            >li{
                display: flex;
                position: relative;
                height: 30px;
                justify-content: center;
                text-align: center;
                padding: 0 20px;
                border-right: 1px solid #ccc;
                >a{
                    display: block;
                    width: 120px;
                    height: 30px;
                    font-size: 14px;
                    line-height: 30px;
                    color: #000;
                }
                >i{
                    font-size: 14px;
                    display: block;
                    width: 30px;
                    height: 30px;
                    line-height: 30px;
                    border: 1px solid red;
                    border-radius: 50%;
                    font-style: normal;
                }
                &:last-child{
                    border: none;
                }
            }
        }
    }
    .footer{
        height: 50px;
        background: #000;
        text-align: center;
        padding: 10px;
        >p{
            margin: 0;
            padding: 0;
            font-size: 10px;
            color: #fff;
        }
    }
}
// 侧边栏样式